package demo5;

public class ThreadSleepTest {
    public static void main(String[] args) {
        new Thread(new ThreadSleep()).start();
        System.out.println("main 方法开始");

        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("main 方法结束");
    }
}
